package week07.day01;

import java.util.Scanner;

/**
 * 用类方法：已知圆的半径，求圆的周长和面积
 */

public class 上机练习 {
    public static void main(String[] args) {
        Circle circle = new Circle(3);
        System.out.println("请输入圆的半径：");
    }
}

class Circle{
    double r;
    double mianji = 2*3.14*r;
    double zhouchang = 3.14*r*r;
    public Circle(int r){
        System.out.println("圆的半径为："+r+"面积为"+mianji+"周长为"+zhouchang);
    }
}